package com.example.xyxwebbackend001.service;

import com.example.xyxwebbackend001.model.entity.TPosts;
import com.example.xyxwebbackend001.model.vo.PartUserInfoVO;
import com.example.xyxwebbackend001.model.vo.SecurityInfoVO;
import com.example.xyxwebbackend001.model.vo.UserProfileVO;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.util.List;

public interface UserCenterService {

    PartUserInfoVO getPartUserInfo(Integer userId);
    UserProfileVO getUserProfile(Integer userId);

    String getUserAvatarPath(Integer userId);

    String updateUserAvatar(Integer userId, MultipartFile file) throws IOException;

    Integer updateUserProfile(Integer userId, String sex, String signature, String profile, String cityId, String interestedCulture);

    List<TPosts> getUserTPosts(Integer userId);

    Integer deleteTPostById(Integer tPostId);

    SecurityInfoVO getSecurityInfo(Integer userId);

    Integer updateEmail(Integer userId, String email);

}
